package com.jiazhong.basic.shuxin.thread.a;

import lombok.SneakyThrows;

public class DemoA {
    @SneakyThrows
    public synchronized void a() {
        String currentThreadName = Thread.currentThread().getName();
        System.out.println(currentThreadName + "开始执行操作");
        Thread.sleep(3000);
        System.out.println(currentThreadName + "结束执行操作");
    }
}
